import Vue from 'vue'
import Router from 'vue-router'
import Main from '../components/Main';
import Search from "../components/Search";
import DispMap from "../components/DispMap";

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/main',
      name: 'Main',
      component: Main,
      redirect:"/main/search",
      children: [
        {
          path: 'map',
          name: 'DispMap',
          component: DispMap,
        },
        {
          path: 'search',
          name: 'search',
          component: Search
        }
      ]
    },
  ]
})
